<template>
  <div class="box">
    <el-row :gutter="10">
      <el-col :xs="24" :sm="6">
        <div class="left">
          <h1>关于我</h1>
          <div>
            <div>
              <span>你好</span>
              <span>{{ uname }}</span>
            </div>
            <figure>
              <!-- <img src="../../../../public/xiaotuzi.gif" alt="" /> -->
            </figure>

            <figcaption>teacher</figcaption>

            <div>
              <span class="el-icon-edit-outline"></span>
              <span>个人简介</span>
            </div>
          </div>
          <p>无</p>
        </div>
      </el-col>

      <el-col :xs="24" :sm="18">
        <div class="right">
          <JianLeftVue />
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import JianLeftVue from "./JianLeft.vue";

export default {
  data() {
    return {
      uname: "",
    };
  },
  components: {
    JianLeftVue,
  },
  mounted() {
    this.uname = window.sessionStorage.getItem("uname");
  },
};
</script>

<style scoped>
/* .el-col {
  margin-right: 2px;
} */
.left {
  width: 100%;
  height: 300px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  background-color: white;
}
.left > h1 {
  font-weight: 400;
  font-size: 16px;
  padding: 15px 0;
  padding-left: 20px;
  border-bottom: 1px solid #ccc;
  box-shadow: 1px 1px 5px 1px #ccc;
}
.left > div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}
.left > div > div:nth-child(1) {
  width: 74px;
  height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 6px solid #ccc;
  border-radius: 50px;
}

.left > div > figure {
  width: 85px;
  height: 85px;
  line-height: 85px;
  text-align: center;
  background: rgb(52, 212, 245);
  border-radius: 50px;
  transform-origin: right;
  transition: all 1s;
  position: absolute;
  top: 40px;
}
.left > div > figure > img {
  width: 70%;
  vertical-align: middle;
}
.left > div > figure:hover {
  transform: rotate(-120deg);
}
.left > div > figcaption {
  margin-top: 10px;
  margin-bottom: 20px;
}
.left > div > div:nth-child(4) {
  width: 85%;
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}
.left > p {
  margin-left: 10px;
  margin-bottom: 90px;
  font-size: 14px;
  color: #ccc;
}
.right {
  width: 100%;
  border-radius: 6px;
  background-color: white;
  border: 1px solid #ccc;
}
</style>
